<%@ taglib prefix="s" uri="/struts-tags"%>

<s:form action="admin/updateFinalFees.htm" id="form" theme="simple" method="post">
	<table width="100%">
		<tr>
        	<td height="40" class="sectionheading bottom-border">Final Fees</td>
		</tr>
		<tr>
			<td valign="top" class="verdana12blacknormal">
				Please enter the Final Value Auctions listing fees. Do not include
				any currency symbols, only digits and the decimal point or comma.
				<br>
				<br>
			</td>
		</tr>
		<tr>
			<td valign="top" width="100%">
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					class="Textfiled-border">
					<tbody>
						<tr align="center" height="25">
							<td align="center" bgcolor="#E9E9E9"
								class="right-border verdana12darkgreybold">
								&nbsp;
								<b>#</b>&nbsp;
							</td>
							<td align="center" bgcolor="#E9E9E9"
								class="right-border verdana12darkgreybold">
								&nbsp;
								<b>Final Price From</b>&nbsp;
							</td>
							<td align="center" bgcolor="#E9E9E9"
								class="right-border verdana12darkgreybold">
								&nbsp;
								<b>Final PriceTo</b>&nbsp;
							</td>

							<td align="center" bgcolor="#E9E9E9"
								class="right-border verdana12darkgreybold">
								&nbsp;
								<b>Fees Fixed</b>&nbsp;
							</td>
							<td align="center" bgcolor="#E9E9E9"
								class="verdana12darkgreybold">
								&nbsp;
								<b>Fees Percentage</b>&nbsp;
							</td>
						</tr>
					<s:iterator value="finalFeesList" status="rowstatus">
						<s:hidden name="finalFeesMap[%{id}].id" value="%{id}" />
						<s:set name="classCSS" value="%{'Textfiled-no-border-odd'}" var="classCSS"></s:set>
						<s:set name="bgColor" value="%{'#FFFFFF'}" var="bgColor"></s:set>

						<s:if test="#rowstatus.even">
							<s:set var="classCSS" value="%{'Textfiled-no-border-even'}"></s:set>
							<s:set var="bgColor" value="%{'#F8F8F8'}"></s:set>
						</s:if>

						<tr>
							<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
								&nbsp;
								<b><s:property value="%{#rowstatus.index + 1}" /></b>&nbsp;
							</td>
							<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
								<s:textfield theme="simple" cssClass="%{classCSS}" name="finalFeesMap[%{id}].finalPriceFrom" value="%{finalPriceFrom}" size="15" />
							</td>
							<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
								<s:textfield theme="simple" cssClass="%{classCSS}" name="finalFeesMap[%{id}].finalPriceTo" value="%{finalPriceTo}" size="15" />
							</td>

							<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
								<s:textfield theme="simple" cssClass="%{classCSS}" name="finalFeesMap[%{id}].feesFixed" value="%{feesFixed}" size="15" />
							</td>
							<td align="center" class="verdana12Greybold" bgcolor="<s:property value="%{bgColor}" />">
								<s:textfield theme="simple" cssClass="%{classCSS}" name="finalFeesMap[%{id}].feesPercentage" value="%{feesPercentage}" size="15" />
							</td>
						</tr>
					</s:iterator>
					</tbody>
				</table>
			</td>
		</tr>
		<tr>
			<td width="100%" class="verdana12blacknormal">
				<p align="justify">
					<b>Final Value Fees<br> </b>At the end of an auction, the
					seller will be charged a final value fee based on the final sale
					price of the item.
					<br>
					<br>
					<b>1)-Regular and Reserve Auctions</b>
					<br>
					The final value is the closing bid. There is no final value fee
					charged if the reserve is not met.
					<br>
					<b><br>2)-Dutch Listings<br> </b>The final value is the
					lowest successful bid, multiplied by the quantity of items sold.
					<br>
					<br>
					Please note: Reserve Price Auctions are not available for Dutch
					Auctions.
					<br>
					<br>
				</p>
			</td>
		</tr>

		<tr>
			<td align="center" width="100%">
				<s:submit theme="simple" type="image" src="../Admin-Images/save-chagnes-button.gif" value="Save Changes" />
				<img onclick="document.getElementById('form').reset();" style="cursor: pointer;" src="../Admin-Images/reset-button.gif" alt="Cancel" />
    			<img onclick="history.go(-1);" style="cursor: pointer;" src="../Admin-Images/cancel_btn.gif" alt="Cancel" />
			</td>
		</tr>
	</table>
</s:form>